/**
 * 
 */
package org.hibernate.tutorial.domain;

/**
 * @author hirokiterashima
 *
 */
import java.util.Date;

import javax.persistence.Id;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(name=Event.TABLE_NAME)
public class Event {

	@Transient
	public static final String TABLE_NAME = "events";
	
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id = null;

	@Column(name="title")
    private String title;
	
	@Column(name="date")
    private Date date;

    public Event() {}

    public Long getId() {
        return id;
    }

    @SuppressWarnings("unused")
	private void setId(Long id) {
        this.id = id;
        
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}